//
//  PersonalRegSUSViewController.m
//  CarTown
//
//  Created by xionghao on 15/8/13.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "PersonalRegSUSViewController.h"
#import "RootTabViewController.h"
#import "Puser.h"
#import "GotoViewController.h"
@interface PersonalRegSUSViewController ()

@end

@implementation PersonalRegSUSViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title=@"注册完成";
    // Do any additional setup after loading the view.
}
+(instancetype)viewcontoller{
    PersonalRegSUSViewController *psus=[XHMianStory instantiateViewControllerWithIdentifier:@"suok"];
   
    return psus;
}

-(UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)gotorenzheng:(id)sender {
    
    GotoViewController *vc=[GotoViewController viewcontroller];
    [XHUserDeflaut setBool:YES forKey:LOGINSTATE];
    [XHUserDeflaut setInteger:[self.mode.power integerValue] forKey:POWER];
    [Puser userWithDict:self.mode.data WithPower:@(4)];
    [self.navigationController pushViewController:vc animated:YES];
    
}

- (IBAction)gotoindex:(id)sender {
    
    RootTabViewController *tabvc=[XHMianStory instantiateViewControllerWithIdentifier:@"tabroot"];
    [XHUserDeflaut setBool:YES forKey:LOGINSTATE];
    [XHUserDeflaut setInteger:[self.mode.power integerValue] forKey:POWER];
    [Puser userWithDict:self.mode.data WithPower:@(4)];
    [self.navigationController pushViewController:tabvc animated:YES];
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
   
}


@end
